public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        int[] nums = {1,3,5,6};
        int target = 5;
        System.out.println(solution.searchInsert(nums,target));
        int[] nums1 = {5,7,7,8,8,10};
        int target1 = 8;
        int[] nums2 = solution.searchRange(nums1,target1);
        for(int x : nums2) {
            System.out.print(x+" ");
        }
    }
}
